Skip to content

Instantly share code, notes, and snippets.

@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active December 2, 2025 11:35
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@mikeslattery
mikeslattery / .idea-lazy.vim
Last active December 2, 2025 11:33
LazyVim mappings for Jetbrains IDEs
" ~/.idea-lazy.vim
" LazyVim mappings for Jetbrains IDEs
" Required plugins. https://plugins.jetbrains.com/bundles/7-ideavim-bundle
" IDEAVim
" Which-Key
" IdeaVim-Sneak
" To install, add this to the top of your ~/.ideavimrc:
@vhsw
vhsw / markdown.md
Last active December 2, 2025 11:32
Как конвертировать markdown в PDF

Как конвертировать markdown в PDF

Данный туториал протестирован в Ubuntu 18.10 и должен работать в любом дистрибутиве, основанном на Debian.

Для начала потребутеся установить необходимые пакеты. Pandoc необходим для конвертации markdown в \LaTeX. Так как, скорее всего, русскоязычный читатель захочет использовать в создаваемом документе не только латиницу, нам потребуется поддержка юникода, по этому для создания PDF используется xelatex. Также потребуется шрифт с поддержкой юникода, в данном случае Computer Modern из пакета fonts-cmu.

sudo apt update
sudo apt install pandoc texlive-xetex fonts-cmu
@jph00
jph00 / polya.md
Last active December 2, 2025 11:32
Summary of Polya's "How To Solve It With Code"

A guide to George Polya's "How to Solve It"

Introduction

George Polya (1887-1985) was a Hungarian mathematician and educator who revolutionized our understanding of problem-solving and teaching. While he made significant contributions to mathematics, his most enduring legacy is his insights into how people learn and solve problems. His 1945 book "How to Solve It" has influenced educators across numerous fields, extending far beyond mathematics.

Polya's Teaching Philosophy

Polya's approach centered on three key principles. First, he championed active learning, believing students learn best by discovering solutions themselves rather than being told answers. Second, he emphasized heuristic thinking - the art of guided discovery and learning from experience, viewing problem-solving as a skill that can be developed through practice. Third, he developed sophisticated questionin

@rvrsh3ll
rvrsh3ll / windows-keys.md
Created February 18, 2024 22:44
Windows Product Keys

NOTE

These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.

Index

import SwiftUI
struct ContentView: View {
var body: some View {
TextShape(sample)
.fill(.orange)
.stroke(.blue, lineWidth: 2)
}
var sample: AttributedString {
const catchAsync = (fn) => {
try {
return async (...args) => await fn(...args);
} catch (err) {
console.error(err);
}
};
export default catchAsync;
@ctoth
ctoth / CLAUDE.md
Created November 30, 2025 20:46
My Current global CLAUDE.md

Working with Q — Coding Agent Protocol

What This Is

Applied rationality for a coding agent. Defensive epistemology: minimize false beliefs, catch errors early, avoid compounding mistakes.

This is correct for code, where:

  • Reality has hard edges (the compiler doesn't care about your intent)
  • Mistakes compound (a wrong assumption propagates through everything built on it)
  • The cost of being wrong exceeds the cost of being slow
@xTCry
xTCry / README.md
Last active December 2, 2025 11:23
[Bitrix VM] Настройки/фиксы

[Bitrix VM] Настройки/фиксы

Фикс редиректа на :443 работы через Nginx proxy в NAT

Статья: https://it-lux.ru/nginx-reverse-proxy-bitrix-vm/

Создать файл /etc/nginx/bx/settings/schema.conf

map $http_x_forwarded_proto $balancer_port {
@BongoKnight
BongoKnight / README.md
Created April 24, 2025 15:48
Infosec RSS feed from AppSec Ezine 01-2024 to 04-2025 and ShellShark
  1. Insert a list of URLs in the python file
  2. Retrieve the list of feed found
  3. Do a bit of cleanup to remove non feed items (remove URL with comments or derivative of opensearch.xml files)
  4. You can then use a online tool such as this one to generate an OPML file to bulk import these feeds: https://dotriz.com/tools/opml-generator/

Warning

Feeds might be incorrect, too verbose or unrelated to infosec, I will sort the feed after import in my RSS feed reader